package com.vca.common.model.sf;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="NewDestAddress对象", description="新目的地")
public class NewDestAddress implements Serializable {
    private static final long serialVersionUID = 345945228461155620L;

    @ApiModelProperty(value = "国家，默认中国")
    private String country;

    @ApiModelProperty(value = "国家编码，默认CN")
    private String countryCode;

    @ApiModelProperty(value = "省，如广东省")
    @NotBlank(message = "省不能为空")
    private String province;

    @ApiModelProperty(value = "市，如深圳市")
    @NotBlank(message = "市不能为空")
    private String city;

    @ApiModelProperty(value = "区，如南山区")
    @NotBlank(message = "区不能为空")
    private String county;

    @ApiModelProperty(value = "详细地址，不包含省市区，如粤海街道高新区1C栋二楼")
    @NotBlank(message = "详细地址不能为空")
    private String address;

    @ApiModelProperty(value = "公司")
    private String company;

    @ApiModelProperty(value = "联系人姓名，如黄飞鸿")
    private String contact;

    @ApiModelProperty(value = "电话，如18012345678")
    private String phone;

    @ApiModelProperty(value = "网点代码，如755WQ")
    private String areaCode;

    @ApiModelProperty(value = "城市代码")
    private String locationCode;
}
